package exceptions;

/**
 * Encapsulates the exception caused by incorrect bracket amount in the code block
 */
public class WrongBracketAmountException extends Exception{
    private String message; 
    /**
     * Creating new object via message to be stored
     * @param message - is an error message of current exception 
     */
    public WrongBracketAmountException(String message){ 
        this.message = message;
    } 
    @Override
    public String getMessage(){
        return "WrongBracketAmountException: " + message; 
    }     
}
